home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
internet
/
oh10a7.zip
/
CGI-BIN
/
MINIMAL.PL
< prev
next >
Wrap
Text File
|
1996-05-17
|
769b
|
28 lines
#!/usr/local/bin/perl
# minimal.cgi
# Copyright (C) 1995 Steven E. Brenner
# $Header: /cys/people/brenner/http/docs/web/RCS/minimal.cgi,v 1.3 1996/03/29 21:48:08 brenner Exp $
# This is the minimalist comboform script to demonstrate the use of
# the cgi-lib.pl library -- it needs only 6 orindary-length lines
# --
# This is NOT intended to be a "typical" script
# Note that it does not produce a valid HTML page (it is missing <head> etc.)
# Most importantly, the <form> key should normally have parameters like
# <form method=POST action="minimal.cgi">
require "cgi-lib.pl";
if (&ReadParse) {
print &PrintHeader, &PrintVariables;
} else {
print &PrintHeader,'<form><input type="submit">Data: <input name="myfield">';
}